import json

import interface

while(True):
    service_info = interface.get_service_instance_info()
    with open(r'./service.txt', mode='w') as tf2:
        tf2.write(service_info)